import java.util.Scanner;
public class test49 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Enter a character: ");
        String input = scanner.next();
        if (input.length() == 1) {
            char ch = input.charAt(0);
            int unicode = (int) ch;
            System.out.println("The Unicode for the character " + ch + " is " + unicode);
        } else {
            System.out.println("Invalid input (please enter a single character)");
        }
        scanner.close();
    }
}
